package com.atguigu.gulimall.order.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
/**
 * 订单项信息
 */
@Data
@TableName("oms_order_item")
public class OrderItemEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@TableId
	private Long id;
	private Long orderId;
	private String orderSn;    //订单号
	private Long spuId;
	private String spuName;
	private String spuPic;    //商品spu图片
	private String spuBrand;    //品牌
	private Long categoryId;    //商品分类id
	private Long skuId;    //商品sku编号
	private String skuName;    //商品sku名字
	private String skuPic;    //商品sku图片
	private BigDecimal skuPrice;    //商品sku价格
	private Integer skuQuantity;    //商品购买的数量
	private String skuAttrsVals;    //商品销售属性组合（JSON）
	private BigDecimal promotionAmount;    //商品促销分解金额
	private BigDecimal couponAmount;    //优惠券优惠分解金额
	private BigDecimal integrationAmount;    //积分优惠分解金额
	private BigDecimal realAmount;    //该商品经过优惠后的分解金额
	private Integer giftIntegration;    //赠送积分
	private Integer giftGrowth;    //赠送成长值
}
